//
//  BankListCell.swift
//  Order
//
//  Created by Monster . on 2020/7/4.
//  Copyright © 2020 lazyloading. All rights reserved.
//

import UIKit
import MGSwipeTableCell

class BankListCell: MGSwipeTableCell {
    @IBOutlet weak var bgImgView: UIImageView!
//    @IBOutlet weak var iconImageView: UIImageView!
    @IBOutlet weak var titleLabel: UILabel!
    @IBOutlet weak var detailLabel: UILabel!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
        layer.cornerRadius = 6
        
//        iconImageView.layer.cornerRadius = 45/2.0
        titleLabel.font = UIFont.systemFont(ofSize: 18, weight: .regular)
        detailLabel.font = UIFont.systemFont(ofSize: 14, weight: .regular)
        self.selectionStyle = .none;
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    override var frame: CGRect {
        didSet {
            var newFrame = frame
            newFrame.origin.x += 15
            newFrame.origin.y += 5
            newFrame.size.width -= 30
            newFrame.size.height -= 10
            super.frame = newFrame
        }
    }
    
}
